import * as type from './type'
import Vue from 'vue'

export const state={
	whichse:0,
	seleaddr:null,
	seleflw:{}
}

const mutations = {
	[type.WHICHSE](state,obj) {
		state.whichse =obj ;
	},
	[type.SELEADDR](state,obj) {
		state.seleaddr =obj ;
	},
	[type.SELEFLW](state,obj) {
		state.seleflw =obj ;
	},
}

const getters = {
	whichse(state) {
		return state.whichse
	},
	seleaddr(state) {
		return state.seleaddr
	},
	seleflw(state) {
		return state.seleflw
	},
}

export default {
	state,
	mutations,
	getters
}